<table summary="" id="pagehead" cellpadding="0" cellspacing="0" border="0" width="100%">
	<tr>
		<td><h1>日报报表</h1></td>
		<td class="actions">
			<table summary="" cellpadding="0" cellspacing="0" border="0" align="right">
				<tr>
					<td><a href="<?php echo '?app=daily&mod=post'; ?>" class="add">日报申请</a></td>
					<td <?php echo $this->maction ?>><a href="<?php echo '?app='.APP.'&mod='.MOD.'&type=m'; ?>" class="add">我的日报</a></td>
                    <td <?php echo $this->saction ?>><a href="<?php echo '?app='.APP.'&mod='.MOD.'&type=s'; ?>" class="add">日报审核</a></td>
					<td <?php echo $this->faction ?>><a href="<?php echo '?app='.APP.'&mod='.MOD.'&type=f'; ?>" class="add">日报复审</a></td>
                    <td <?php echo $this->xaction ?>><a href="<?php echo '?app='.APP.'&mod='.MOD.'&type=x'; ?>" class="add">日报核销</a></td>
				</tr>
			</table>
		</td>
	</tr>
</table>
<?php if($this->type=='m'): ?>
<div class="search">
    <form id='search' post="get">
        <span>
         开始时间：<input type="text"  style="width:100px;" id="start_date" name="start_date" value="<?=$this->start_date?>" readonly="1" onclick="new Calendar(2011,2018).show(this)"  />
	      </span>
         <span>
         结束时间：<input type="text" style="width:100px;" id="end_date" name="end_date"  value="<?=$this->end_date?>" readonly="1" onclick="new Calendar(2011,2018).show(this)"  />
		</span>
        <span><input type="submit" value="搜索" /><?php echo showhide(array('app'=>APP,'mod'=>'my','type'=>'m')); ?></span>
    </form>
</div>
<div class="line_1"></div>
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="table1">
       <tr>
            <th class="th0" rel="daily_id">编号</th>
            <th class="th0">职员用户名</th>
            <th class="th0" rel="nickname">职员姓名</th>
            <th class="th0" rel="audit1_dateline">一审</th>
            <th class="th0" rel="audit2_dateline">二审</th>
            <th class="th0" rel="audit3_dateline">核销</th>
            <th class="th0" rel="created_time">时间</th>
            <th class="th0">操作</a>
       </tr>
       <?php foreach((array)$this->daily_list as $daily): ?> 
       <tr>
            <td><?php echo $daily['daily_id']; ?></td>
            <td><?php echo $daily['username']; ?></td>
            <td><?php echo $daily['nickname']; ?></td>
            <td><?php echo $daily['audit1_dateline'] ? $daily['audit1_username'].'['.date('Y-m-d H:i',$daily['audit1_dateline']).']' : '-'; ?></td>
            <td><?php echo $daily['audit2_dateline'] ? $daily['audit2_username'].'['.date('Y-m-d H:i',$daily['audit2_dateline']).']' : '-'; ?></td>
            <td><?php echo $daily['audit3_dateline'] ? $daily['audit3_username'].'['.date('Y-m-d H:i',$daily['audit3_dateline']).']' : '-'; ?></td>
            <td><?php echo date('Y-m-d H:i:s',$daily['created_time']); ?></td>
            <td><?php echo opt('view','?app='.APP.'&mod='.MOD.'&daily_id='.$daily['daily_id']); ?></td>
       </tr>
       <?php endforeach; ?>
</table>
<div class="page_num">
     <div class="fl">
        <span></span>
     </div>
     <div class="fr">
        <p class="cpager">
            <?php echo $this->pager; ?>
        </p>
     </div>
</div>


<?php elseif($this->type=='s'): ?>

<div class="search">
    <form id='search' post="get">
        <span>
         开始时间：<input type="text"  style="width:100px;" id="start_date" name="start_date" value="<?=$this->start_date?>" readonly="1" onclick="new Calendar(2011,2018).show(this)"  />
	      </span>
         <span>
         结束时间：<input type="text" style="width:100px;" id="end_date" name="end_date"  value="<?=$this->end_date?>" readonly="1" onclick="new Calendar(2011,2018).show(this)"  />
		</span>
        <span><input type="submit" value="搜索" /><?php echo showhide(array('app'=>APP,'mod'=>'mingxi','type'=>'m')); ?></span>
    </form>
</div>
<div class="line_1"></div>
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="table1">
       <tr>
            <th class="th0" rel="daily_id">编号</th>
            <th class="th0">职员用户名</th>
            <th class="th0" rel="nickname">职员姓名</th>
            <th class="th0" rel="audit1_dateline">一审</th>
            <th class="th0" rel="audit2_dateline">二审</th>
            <th class="th0" rel="audit3_dateline">核销</th>
            <th class="th0" rel="created_time">时间</th>
            <th class="th0">操作</a>
       </tr>
       <?php foreach((array)$this->daily_list as $daily): ?> 
       <tr>
            <td><?php echo $daily['daily_id']; ?></td>
            <td><?php echo $daily['username']; ?></td>
            <td><?php echo $daily['nickname']; ?></td>
            <td><?php echo $daily['audit1_dateline'] ? $daily['audit1_username'].'['.date('Y-m-d H:i',$daily['audit1_dateline']).']' : '-'; ?></td>
            <td><?php echo $daily['audit2_dateline'] ? $daily['audit2_username'].'['.date('Y-m-d H:i',$daily['audit2_dateline']).']' : '-'; ?></td>
            <td><?php echo $daily['audit3_dateline'] ? $daily['audit3_username'].'['.date('Y-m-d H:i',$daily['audit3_dateline']).']' : '-'; ?></td>
            <td><?php echo date('Y-m-d H:i:s',$daily['created_time']); ?></td>
            <td><?php echo opt('view','?app='.APP.'&mod='.MOD.'&daily_id='.$daily['daily_id']); ?></td>
       </tr>
       <?php endforeach; ?>
</table>
<div class="page_num">
     <div class="fl">
        <span></span>
     </div>
     <div class="fr">
        <p class="cpager">
            <?php echo $this->pager; ?>
        </p>
     </div>
</div>


<?php elseif($this->type=='f'): ?>

<div class="search">
    <form id='search' post="get">
        <span>
         开始时间：<input type="text"  style="width:100px;" id="start_date" name="start_date" value="<?=$this->start_date?>" readonly="1" onclick="new Calendar(2011,2018).show(this)"  />
	      </span>
         <span>
         结束时间：<input type="text" style="width:100px;" id="end_date" name="end_date"  value="<?=$this->end_date?>" readonly="1" onclick="new Calendar(2011,2018).show(this)"  />
		</span>
        <span><input type="submit" value="搜索" /><?php echo showhide(array('app'=>APP,'mod'=>'mingxi','type'=>'m')); ?></span>
    </form>
</div>
<div class="line_1"></div>
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="table1">
       <tr>
            <th class="th0" rel="daily_id">编号</th>
            <th class="th0">职员用户名</th>
            <th class="th0" rel="nickname">职员姓名</th>
            <th class="th0" rel="audit1_dateline">一审</th>
            <th class="th0" rel="audit2_dateline">二审</th>
            <th class="th0" rel="audit3_dateline">核销</th>
            <th class="th0" rel="created_time">时间</th>
            <th class="th0">操作</a>
       </tr>
       <?php foreach((array)$this->daily_list as $daily): ?> 
       <tr>
            <td><?php echo $daily['daily_id']; ?></td>
            <td><?php echo $daily['username']; ?></td>
            <td><?php echo $daily['nickname']; ?></td>
            <td><?php echo $daily['audit1_dateline'] ? $daily['audit1_username'].'['.date('Y-m-d H:i',$daily['audit1_dateline']).']' : '-'; ?></td>
            <td><?php echo $daily['audit2_dateline'] ? $daily['audit2_username'].'['.date('Y-m-d H:i',$daily['audit2_dateline']).']' : '-'; ?></td>
            <td><?php echo $daily['audit3_dateline'] ? $daily['audit3_username'].'['.date('Y-m-d H:i',$daily['audit3_dateline']).']' : '-'; ?></td>
            <td><?php echo date('Y-m-d H:i:s',$daily['created_time']); ?></td>
            <td><?php echo opt('view','?app='.APP.'&mod='.MOD.'&daily_id='.$daily['daily_id']); ?></td>
       </tr>
       <?php endforeach; ?>
</table>
<div class="page_num">
     <div class="fl">
        <span></span>
     </div>
     <div class="fr">
        <p class="cpager">
            <?php echo $this->pager; ?>
        </p>
     </div>
</div>
<?php elseif($this->type=='x'): ?>

<div class="search">
    <form id='search' post="get">
        <span>
         开始时间：<input type="text"  style="width:100px;" id="start_date" name="start_date" value="<?=$this->start_date?>" readonly="1" onclick="new Calendar(2011,2018).show(this)"  />
	      </span>
         <span>
         结束时间：<input type="text" style="width:100px;" id="end_date" name="end_date"  value="<?=$this->end_date?>" readonly="1" onclick="new Calendar(2011,2018).show(this)"  />
		</span>
        <span><input type="submit" value="搜索" /><?php echo showhide(array('app'=>APP,'mod'=>'mingxi','type'=>'m')); ?></span>
    </form>
</div>
<div class="line_1"></div>
<table width="100%" cellpadding="0" cellspacing="0" border="0" class="table1">
       <tr>
            <th class="th0" rel="daily_id">编号</th>
            <th class="th0">职员用户名</th>
            <th class="th0" rel="nickname">职员姓名</th>
            <th class="th0" rel="audit1_dateline">一审</th>
            <th class="th0" rel="audit2_dateline">二审</th>
            <th class="th0" rel="audit3_dateline">核销</th>
            <th class="th0" rel="created_time">时间</th>
            <th class="th0">操作</a>
       </tr>
       <?php foreach((array)$this->daily_list as $daily): ?> 
       <tr>
            <td><?php echo $daily['daily_id']; ?></td>
            <td><?php echo $daily['username']; ?></td>
            <td><?php echo $daily['nickname']; ?></td>
            <td><?php echo $daily['audit1_dateline'] ? $daily['audit1_username'].'['.date('Y-m-d H:i',$daily['audit1_dateline']).']' : '-'; ?></td>
            <td><?php echo $daily['audit2_dateline'] ? $daily['audit2_username'].'['.date('Y-m-d H:i',$daily['audit2_dateline']).']' : '-'; ?></td>
            <td><?php echo $daily['audit3_dateline'] ? $daily['audit3_username'].'['.date('Y-m-d H:i',$daily['audit3_dateline']).']' : '-'; ?></td>
            <td><?php echo date('Y-m-d H:i:s',$daily['created_time']); ?></td>
            <td><?php echo opt('view','?app='.APP.'&mod='.MOD.'&daily_id='.$daily['daily_id']); ?></td>
       </tr>
       <?php endforeach; ?>
</table>
<div class="page_num">
     <div class="fl">
        <span></span>
     </div>
     <div class="fr">
        <p class="cpager">
            <?php echo $this->pager; ?>
        </p>
     </div>
</div>
<?php endif; ?>





